package interview;

import java.util.*;

class A{
    public void run(){
        System.out.println("100");
    }

}
class B extends A{
    public void run(){
        System.out.println("22");
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }
}
public class testcxl {
    public static void main(String[] args) {
        A a = new B();
        a.run();
        System.out.println(find(1, 1));
    }
    public static ArrayList<Integer> find(int m, int n){
        ArrayList<Integer> ans = new ArrayList<>();
        if(n <= 1 || m > n)
            return ans;
        if(m <= 1 || n > m)
            m = 2;
        for(int i = m; i <= n; i++){
            if(isSushu(i))
                ans.add(i);
        }
        return ans;
    }
    public static Boolean isSushu(int num){
        for(int i = 2; i < num; i++){
            if(num % i == 0)
                return false;
        }
        return true;
    }

}
